home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / modules.lha / modules / gadgets / chooser.m < prev    next >
Encoding:
Text File  |  2002-01-13  |  3.1 KB  |  70 lines

  1. /* Predefined Minimum dimensions for safe operation. */
  2. CONST CHOOSER_MinWidth=36,
  3.  CHOOSER_MinHeight=10,
  4.  CHJ_LEFT=0,
  5.  CHJ_CENTER=1,
  6.  CHJ_RIGHT=2
  7. /*****************************************************************************/
  8. /* Chooser node attributes.
  9.  */
  10. #define CNA_Dummy       (TAG_USER+0x5001500)
  11. #define CNA_Text      (CNA_Dummy+1)
  12. /* (STRPTR) Text for the node. */
  13. #define CNA_Image       (CNA_Dummy+2)
  14. /* (strcut Image *) normal image for node. */
  15. #define CNA_SelImage    (CNA_Dummy+3)
  16. /* (strcut Image *) select image for node. */
  17. #define CNA_UserData    (CNA_Dummy+4)
  18. /* (APRR) user data, use as desired. */
  19. #define CNA_Separator     (CNA_Dummy+5)
  20. /* (BOOL) Render a separator bar. */
  21. #define CNA_Disabled    (CNA_Dummy+6)
  22. /* (BOOL) Disabled entry... */
  23. #define CNA_BGPen       (CNA_Dummy+7)
  24. /* (WORD) Background Pen. (not implemented) */
  25. #define CNA_FGPen       (CNA_Dummy+8)
  26. /* (WORD) Foreground Pen. (not implemented) */
  27. #define CNA_ReadOnly    (CNA_Dummy+9)
  28. /* (BOOL) Non-selectable entry... */
  29. /*****************************************************************************/
  30. /* Additional attributes defined by the Chooser class
  31.  */
  32. #define CHOOSER_Dummy     (REACTION_Dummy+0x1000)
  33. #define CHOOSER_PopUp     (CHOOSER_Dummy+1)
  34. /* (BOOL) Make it a popup menu.  Default to TRUE. */
  35. #define CHOOSER_DropDown  (CHOOSER_Dummy+2)
  36. /* (BOOL) Make it a dropdown menu.  Defaults to FALSE. */
  37. #define CHOOSER_Title     (CHOOSER_Dummy+3)
  38. /* (STRPTR) Title for the DropDown.  Defaults to NULL. */
  39. #define CHOOSER_Labels    (CHOOSER_Dummy+4)
  40. /* (struct List *) Exec List of labels, required. */
  41. #define CHOOSER_Active    (CHOOSER_Dummy+5)
  42. /* (WORD) Active label in the list.  Defaults to 0. */
  43. #define CHOOSER_Selected  (CHOOSER_Active)
  44. /* A more logical NEW NAME for the above. */
  45. #define CHOOSER_Width     (CHOOSER_Dummy+6)
  46. /* (WORD) The width of the popup menu. Defaults to the width of the
  47.    * gadget. */
  48. #define CHOOSER_AutoFit     (CHOOSER_Dummy+7)
  49. /* (BOOL) Make the menu automatically fit its labels. Defaults to FALSE. */
  50. #define CHOOSER_MaxLabels   (CHOOSER_Dummy+9)
  51. /* (WORD) Maximum number of labels to be shown in the menu regardless
  52.    * of how many are in the CHOOSER_Labels list.   Defaults to 12.*/
  53. #define CHOOSER_Offset    (CHOOSER_Dummy+10)
  54. /* (WORD) Add a fixed value offset to the CHOOSE_Selected value
  55.    * for notification methods. This is useful in connecting a Chooser
  56.    * with item id's 0 thru 11 to a Calendar's month which is 1 thru 12.
  57.    * In that situation, a CHOOSER_Offset of 1 would be used to match
  58.    * the starting offsets of the respective tags.
  59.    * Defaults to 0.  (V41) */
  60. #define CHOOSER_Hidden    (CHOOSER_Dummy+11)
  61. /* (BOOL) If set, the chooser will not render its main body, and you
  62.    * may call the Show/HideChooser functions to popup the chooser under
  63.    * under the mouse pointer.
  64.    * Defaults to FALSE.  (V42 prelease - V41.101 or later) */
  65. #define CHOOSER_LabelArray  (CHOOSER_Dummy+12)
  66.   /* (STRPTR *) A null terminated array of strings to use as labels. Use
  67.      ~0 as string to add separator bar to the list. New for v45.2 */
  68. #define CHOOSER_Justification (CHOOSER_Dummy+13)
  69.   /* (WORD) How to align the labels. New for v45.3 */
  70.